<div class="static"
    v-bind:class="{active : isActive,'text-danger' : hasError}">
</div>

<script src="https://cdn.jsdelivr.net/npm/vue"></script>
<script>
    data:{
        isActive:true,
        hasError:false
    }
</script>